﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Field ID="{A33B83F4-E29B-4b15-9253-111266B7745B}"
         Name="MailPriority"
         DisplayName="$Resources:Mailer,MailPriority"
         Type="Choice"
         Group="_Hidden"
         SourceID="http://schemas.microsoft.com/sharepoint/v3">
    <CHOICES>
      <CHOICE>$Resources:Mailer,MailPriority_High</CHOICE>
      <CHOICE>$Resources:Mailer,MailPriority_Normal</CHOICE>
      <CHOICE>$Resources:Mailer,MailPriority_Low</CHOICE>
    </CHOICES>
    <Default>$Resources:Mailer,MailPriority_Normal</Default>
  </Field>
  <Field ID="{714E8791-9A86-4d0d-BE4D-674F706956B4}"
         Name="FromField"
         Type="Text"
         DisplayName="$Resources:Mailer,FromFieldDN;"
         Description="$Resources:Mailer,FromField;"
         StaticName="FromField"
         Group="_Hidden"
         SourceID="http://schemas.microsoft.com/sharepoint/v3" />
  <Field ID="{08D5C865-2DB6-4944-9941-69532DEB8448}"
         Name="CarbonCopyField"
         Type="Text"
         DisplayName="$Resources:Mailer,Cc;"
         Description="$Resources:Mailer,CarbonCopyFieldDesc;"
         StaticName="CarbonCopyField"
         Group="_Hidden"
         SourceID="http://schemas.microsoft.com/sharepoint/v3" />
  <Field ID="{C8F3991A-4B11-4D49-AA29-23CFF72D656B}"
         Name="GroupField"
         Type="MultiChoice"
         DisplayName="$Resources:Mailer,MailRecipients;"
         Description="$Resources:Mailer,GroupFieldDesc;"
         StaticName="GroupField"
         Group="_Hidden"
         SourceID="http://schemas.microsoft.com/sharepoint/v3" />
  <!-- Parent ContentType: Element (0x01) -->
  <ContentType ID="0x01004fcf65d9ee9f4a77b44323133433dc1a"
               Name="$Resources:Mailer,CTName_HTML"
               Group="_Hidden"
               Description="$Resources:Mailer,CTDescription_HTML"
               Sealed="FALSE"
               Version="0">
    <FieldRefs>
      <FieldRef ID="{714E8791-9A86-4d0d-BE4D-674F706956B4}" Name="FromField" DisplayName="$Resources:Mailer,FromFieldDN;" />
      <FieldRef ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" DisplayName="$Resources:Mailer,MailSubject" Required="TRUE"  />
      <FieldRef ID="{08D5C865-2DB6-4944-9941-69532DEB8448}" Name="CarbonCopyField" DisplayName="$Resources:Mailer,Cc;"/>
      <FieldRef ID="{C8F3991A-4B11-4D49-AA29-23CFF72D656B}" Name="GroupField" DisplayName="$Resources:Mailer,MailRecipients;" Required="TRUE" />
      <FieldRef ID="{7662cd2c-f069-4dba-9e35-082cf976e170}" Name="Body" DisplayName="$Resources:Mailer,MailBody;" />
      <FieldRef ID="{A33B83F4-E29B-4b15-9253-111266B7745B}" Name="MailPriority" DisplayName="$Resources:Mailer,MailPriority" />
      <FieldRef ID="{c4e0f350-52cc-4ede-904c-dd71a3d11f7d}" Name="JobTitle" DisplayName="$Resources:Mailer,Error_Mails;"  />
      <FieldRef ID="{6ca7bd7f-b490-402e-af1b-2813cf087b1e}" Name="WorkCity" DisplayName="$Resources:Mailer,Send_Mails" />
      <FieldRef ID="{9da97a8a-1da5-4a77-98d3-4bc10456e700}" Name="Comments"  DisplayName="Log"  />
    </FieldRefs>
    <XmlDocuments>
      <XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/events">
        <spe:Receivers xmlns:spe="http://schemas.microsoft.com/sharepoint/events">
          <spe:Receiver>
            <spe:Name>ItemAdded</spe:Name>
            <spe:Type>ItemAdded</spe:Type>
            <spe:Assembly>$SharePoint.Project.AssemblyFullName$</spe:Assembly>
            <spe:Class>de.rwth.rz.campus.labs.Mailer2010.GroupMailerEventReceiver.GroupMailerEventReceiver</spe:Class>
          </spe:Receiver>
          <spe:Receiver>
            <spe:Name>ItemUpdating</spe:Name>
            <spe:Type>ItemUpdating</spe:Type>
            <spe:Assembly>$SharePoint.Project.AssemblyFullName$</spe:Assembly>
            <spe:Class>de.rwth.rz.campus.labs.Mailer2010.GroupMailerEventReceiver.GroupMailerEventReceiver</spe:Class>
          </spe:Receiver>
          <spe:Receiver>
            <spe:Name>ItemAdding</spe:Name>
            <spe:Type>ItemAdding</spe:Type>
            <spe:Assembly>$SharePoint.Project.AssemblyFullName$</spe:Assembly>
            <spe:Class>de.rwth.rz.campus.labs.Mailer2010.GroupMailerEventReceiver.GroupMailerEventReceiver</spe:Class>
          </spe:Receiver>
        </spe:Receivers>
      </XmlDocument>
    </XmlDocuments>
  </ContentType>
  <ContentType ID="0x0100E4FC1A20D7664480BD7C7D5041EDA277"
               Name="$Resources:Mailer,CTName_Text"
               Group="C-Labs"
               Description="$Resources:Mailer,CTDescription_Text"
               Version="0">
    <FieldRefs>
      <FieldRef ID="{714E8791-9A86-4d0d-BE4D-674F706956B4}" Name="FromField" DisplayName="$Resources:Mailer,FromFieldDN;" />
      <FieldRef ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" DisplayName="$Resources:Mailer,MailSubject" Required="TRUE"  />
      <FieldRef ID="{08D5C865-2DB6-4944-9941-69532DEB8448}" Name="CarbonCopyField" DisplayName="$Resources:Mailer,Cc;"/>
      <FieldRef ID="{C8F3991A-4B11-4D49-AA29-23CFF72D656B}" Name="GroupField" DisplayName="$Resources:Mailer,MailRecipients;" Required="TRUE" />
      <FieldRef ID="{fc2e188e-ba91-48c9-9dd3-16431afddd50}" Name="WorkAddress"   DisplayName="$Resources:Mailer,MailBody;" />
      <FieldRef ID="{A33B83F4-E29B-4b15-9253-111266B7745B}" Name="MailPriority" DisplayName="$Resources:Mailer,MailPriority" />
      <FieldRef ID="{c4e0f350-52cc-4ede-904c-dd71a3d11f7d}" Name="JobTitle" DisplayName="$Resources:Mailer,Error_Mails;"  />
      <FieldRef ID="{6ca7bd7f-b490-402e-af1b-2813cf087b1e}" Name="WorkCity" DisplayName="$Resources:Mailer,Send_Mails" />
      <FieldRef ID="{9da97a8a-1da5-4a77-98d3-4bc10456e700}" Name="Comments"  DisplayName="Log"  />
    </FieldRefs>
    <XmlDocuments>
      <XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/events">
        <spe:Receivers xmlns:spe="http://schemas.microsoft.com/sharepoint/events">
          <spe:Receiver>
            <spe:Name>ItemAdded</spe:Name>
            <spe:Type>ItemAdded</spe:Type>
            <spe:Assembly>$SharePoint.Project.AssemblyFullName$</spe:Assembly>
            <spe:Class>de.rwth.rz.campus.labs.Mailer2010.GroupMailerEventReceiver.GroupMailerEventReceiver</spe:Class>
          </spe:Receiver>
          <spe:Receiver>
            <spe:Name>ItemUpdating</spe:Name>
            <spe:Type>ItemUpdating</spe:Type>
            <spe:Assembly>$SharePoint.Project.AssemblyFullName$</spe:Assembly>
            <spe:Class>de.rwth.rz.campus.labs.Mailer2010.GroupMailerEventReceiver.GroupMailerEventReceiver</spe:Class>
          </spe:Receiver>
          <spe:Receiver>
            <spe:Name>ItemAdding</spe:Name>
            <spe:Type>ItemAdding</spe:Type>
            <spe:Assembly>$SharePoint.Project.AssemblyFullName$</spe:Assembly>
            <spe:Class>de.rwth.rz.campus.labs.Mailer2010.GroupMailerEventReceiver.GroupMailerEventReceiver</spe:Class>
          </spe:Receiver>
        </spe:Receivers>
      </XmlDocument>
    </XmlDocuments>
  </ContentType>
  <!--<CustomAction Id="{B461F1E0-81D6-4426-8497-6265915962CF}" Title="$Resources:Mailer,BCProject" Description="Beschreibung" GroupId="GeneralSettings"  Location="Microsoft.SharePoint.ListEdit" Sequence="40"  RegistrationId="10007" RegistrationType="List" >
    <UrlAction Url="~site/_layouts/Mailer2010/MailerSettings.aspx?List={ListId}" />
  </CustomAction>-->
</Elements>

